let config = {
    // 默认配置
    version: "1.0.0",
    update: "2025-07-23",
    help_img: "https://img.kookapp.cn/assets/2025-07/23/RazGt06KBy1hc0t6.png",
    html_url: {
        "xhby": "http://xh.xhby.net/pc/layout/index.html",
        "rmrb": "https://paper.people.com.cn/rmrb/pc/layout/",
        "nfrb": "https://epaper.southcn.com/m/ipaper/nfrb/html/index.html"
    }
}

try {
    const res = await fetch('https://oss.xt-url.com/DailyReport-plugin/config.json');
    if (!res.ok) {
        throw new Error(`HTTP error! status: ${res.status} ${res.statusText}`);
    }
    config = await res.json();
} catch (error) {
    logger.error(`[DailyReport-plugin]获取配置数据失败: ${error}`);
}


function get_config() {
    return config
}


export { get_config };